home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February / PCWorld_2008-02_cd.bin / v cisle / mediacenter / MediaCenter12.exe / [0] / Media Jukebox / MiniSkins / Fluxion / main.js < prev    next >
Text File  |  2007-12-24  |  2KB  |  87 lines

  1. var StateHide = 1;
  2. var StateUp = 2;
  3. var StateDown = 4;
  4. var StateOver = 8;
  5. var StateDisabled = 16;
  6.  
  7. var typeButton = 0;
  8. var typePlaceholder = 1;
  9. var typeSlider = 2;
  10. var typeInfoDisplay = 3;
  11.  
  12. function OnInitialize()
  13. {
  14.     if(Metamorphis.LoadSkinState() == false)
  15.     {
  16.         var x = Player.Left;
  17.         var y = Player.Top;        
  18.         
  19.            EQCrescent.SetWindowPos(x + 160, y + 186);
  20.            EQCrescent.ShowWindow(true);
  21.            
  22.            PlayListCrescent.SetWindowPos(x - 25, y + 11);
  23.            PlayListCrescent.ShowWindow(true);
  24.            
  25.            VisBg.SetWindowPos(x - 165, y + 261);
  26.            VisBg.ShowWindow(false);    
  27.     }
  28. }
  29.  
  30.  
  31. function OnExit()
  32. {
  33.     Metamorphis.SaveSkinState();
  34. }
  35.  
  36.  
  37. function OnToggleEq()
  38. {
  39.     var x = Player.Left;
  40.     var y = Player.Top;
  41.     
  42.     if(EQCrescent.Top > y + 186) {
  43.         EQ.ShowWindow(false);
  44.         EQCrescent.MoveWindowAnimated(0, -193, 2);    
  45.     } else {
  46.         EQCrescent.MoveWindowAnimated(0, 193, 2);
  47.         EQ.SetWindowPos(x + 160, y + 235);
  48.         EQ.ShowWindow(true);
  49.     }
  50. }
  51.  
  52.  
  53. function OnToggleVisualization()
  54. {        
  55.     var x = Player.Left;
  56.     var y = Player.Top;
  57.     
  58.     if(VisBg.Top > y + 186) {
  59.         VisBg.ShowWindow(true);
  60.         VisBg.MoveWindowAnimated(0, -75, 1);
  61.         Visualization.SetWindowPos(x - 140, y + 208);
  62.            Visualization.ShowWindow(true);        
  63.         
  64.     } else {
  65.         Visualization.ShowWindow(false);
  66.         VisBg.MoveWindowAnimated(0, 75, 1);
  67.         VisBg.ShowWindow(false);
  68.     }
  69.  
  70. }
  71.  
  72. function OnTogglePlaylist()
  73. {        
  74.     var x = Player.Left;
  75.     var y = Player.Top;
  76.     
  77.     if(PlayListCrescent.Left < x - 30) {
  78.         PlayList.ShowWindow(false);
  79.         PlayListCrescent.MoveWindowAnimated(435, 0, 3);
  80.     } else {
  81.         PlayListCrescent.MoveWindowAnimated(-435, 0, 3);
  82.         PlayList.SetWindowPos(x - 435, y + 11);
  83.            PlayList.ShowWindow(true);
  84.     }
  85.  
  86. }
  87.